package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallDistributionDetail;
import org.linlinjava.litemall.db.domain.LitemallDistributionDetailExample;

public interface LitemallDistributionDetailMapper extends MPJBaseMapper<LitemallDistributionDetail> {
    long countByExample(LitemallDistributionDetailExample example);

    int deleteByExample(LitemallDistributionDetailExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LitemallDistributionDetail record);

    int insertSelective(LitemallDistributionDetail record);

    LitemallDistributionDetail selectOneByExample(LitemallDistributionDetailExample example);

    LitemallDistributionDetail selectOneByExampleSelective(@Param("example") LitemallDistributionDetailExample example, @Param("selective") LitemallDistributionDetail.Column ... selective);

    List<LitemallDistributionDetail> selectByExampleSelective(@Param("example") LitemallDistributionDetailExample example, @Param("selective") LitemallDistributionDetail.Column ... selective);

    List<LitemallDistributionDetail> selectByExample(LitemallDistributionDetailExample example);

    LitemallDistributionDetail selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallDistributionDetail.Column ... selective);

    LitemallDistributionDetail selectByPrimaryKey(Integer id);

    LitemallDistributionDetail selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LitemallDistributionDetail record, @Param("example") LitemallDistributionDetailExample example);

    int updateByExample(@Param("record") LitemallDistributionDetail record, @Param("example") LitemallDistributionDetailExample example);

    int updateByPrimaryKeySelective(LitemallDistributionDetail record);

    int updateByPrimaryKey(LitemallDistributionDetail record);

    int logicalDeleteByExample(@Param("example") LitemallDistributionDetailExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}
